package com.edu.service.impl;

import com.edu.service.BookService;

import java.util.Date;

/**
 * @Auther:zzp
 * @Date:2025/11/10-15:37:39
 */
public class BookServiceProxy implements BookService {

    private BookService bookService;

    public BookServiceProxy(BookService bookService){
        this.bookService=bookService;
    }

    @Override
    public void crud() {
        long startTime = System.currentTimeMillis();
        bookService.crud();
        long endTime = System.currentTimeMillis();
        System.out.println("执行了crud方法所需时间:"+(endTime-startTime));

    }
}
